<?php
/*
# ------------------------------------------------------------------------
# JA Job Board Package
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/
defined('_JEXEC') or die('Restricted access');

//************CORE PERMISSION, CAN'T NOT BE CHANGED**********************///
$permission 	= array();
$permissionText = array();
$group_permission = array();
$group_name = array();

global $permission, $permissionText, $group_permission, $group_name;

//ADMIN PERMISSIONS
$permission['admin']['job']									= 1;
$permission['admin']['employer']							= 2;
$permission['admin']['candidate']							= 4;
$permission['admin']['subcription']							= 8;
$permission['admin']['permission']							= 16;
$permission['admin']['configuration']						= 32;
$permission['admin']['categorie']							= 64;
$permission['admin']['location']							= 128;
$permission['admin']['credit']								= 256;
$permission['admin']['email']								= 512;
$permission['admin']['managefield']							= 1024;
$permission['admin']['fieldlist']							= 2048;
$permission['admin']['paymentconfig']						= 4096;
$permission['admin']['transactions']						= 8192;
$permission['admin']['viewtransactions']					= 16384;
$permission['admin']['customize_template']					= 32768;
$permission['admin']['customize_css']						= 65536;
$permission['admin']['import_job']							= 131072;
$permission['admin']['export_job']							= 262144;
$permission['admin']['view_license']						= 524288;

//USER PERMISSIONS
//$permission['user']['can_view_block_fields']	= 1;
$permission['user']['standard_post_job']		= 2;
$permission['user']['premium_post_job']			= 4;
$permission['user']['post_profile']				= 8;	//Can edit profile
$permission['user']['post_resume']				= 16;	//Can edit profile
$permission['user']['payment']					= 32;	//Submit payment (deposit, withdrawal, buy credit)
//$permission['user']['can_display_contact']		= ;	//Display contact in his profile
//$permission['user']['can_search_profile']		= ;	//display user in search profile list
$permission['user']['can_search_resume']		= 64;	//display user in search profile list
$permission['user']['view_resume_details']		= 128;//View project details?
$permission['user']['view_profile_details']		= 256;//View project details?
$permission['user']['view_job_details']			= 512;//View project details?
$permission['user']['view_list_jobs']			= 1024;//View list jobs?
$permission['user']['view_list_resumes']		= 2048;//View list project?
$permission['user']['view_list_profiles']		= 4096;//View list profiles
$permission['user']['view_list_applications']	= 32768;//View list profiles
$permission['user']['view_application_details']	= 65536;//View project details?
//GUEST PERMISSIONS
$permission['guest']['view_resume_details']		= 1;//View project details?
$permission['guest']['view_profile_details']	= 2;//View project details?
$permission['guest']['view_job_details']		= 4;//View project details?
$permission['guest']['view_list_jobs']			= 8;//View list jobs?
$permission['guest']['view_list_resumes']		= 16;//View list project?
$permission['guest']['view_list_profiles']		= 32;//View list profiles
$permission['guest']['guest_apply_job']				= 64;//View list profiles


//ADMIN PERMISSIONS
$permissionText['admin']['job']					= JText::_("Job Management");
$permissionText['admin']['employer']			= JText::_("Employer Management");
$permissionText['admin']['candidate']			= JText::_("Job Seeker Management");
$permissionText['admin']['subcription']			= JText::_("Subscription Management");
$permissionText['admin']['permission']			= JText::_("Permission Management");
$permissionText['admin']['configuration']		= JText::_("Configuration Management");
$permissionText['admin']['categorie']			= JText::_("Categorie Management");
$permissionText['admin']['location']			= JText::_("Location Management");
$permissionText['admin']['credit']				= JText::_("Credit Package Management");
$permissionText['admin']['email']				= JText::_("Email Templates Management");
$permissionText['admin']['managefield']			= JText::_("Fields Customization");
$permissionText['admin']['fieldlist']			= JText::_("Table List Customization");
$permissionText['admin']['paymentconfig']		= JText::_("Payment Configuration");
$permissionText['admin']['transactions']		= JText::_("Transaction Management");
$permissionText['admin']['viewtransactions']	= JText::_("Transaction Management[view only]");
$permissionText['admin']['customize_template']	= JText::_("Template Customization");
$permissionText['admin']['customize_css']		= JText::_("CSS Customization");
$permissionText['admin']['import_job']			= JText::_("Import data job");
$permissionText['admin']['export_job']			= JText::_("Export data job");
$permissionText['admin']['view_license']		= JText::_("License Management");

//USER PERMISSIONS
$permissionText['user']['post_profile']			= JText::_("Post Profile");
$permissionText['user']['post_resume']			= JText::_("Post Resume");
$permissionText['user']['payment']				= JText::_("Submit Payment");
//$permissionText['user']['can_display_contact']	= JText::_("Display contact");
//$permissionText['user']['can_search_profile']	= JText::_("Search profile");
$permissionText['user']['can_search_resume']	= JText::_("Search Resume");
//$permissionText['user']['can_view_block_fields']= JText::_("View blocked fields");
$permissionText['user']['standard_post_job']	= JText::_("Post Job [Standard]");
$permissionText['user']['premium_post_job']		= JText::_("Post Job [Premium]");
$permissionText['user']['view_resume_details']	= JText::_("View Resume detail");
$permissionText['user']['view_application_details']	= JText::_("View Application detail");
$permissionText['user']['view_profile_details']	= JText::_("View Profile detail");
$permissionText['user']['view_job_details']		= JText::_("View Job detail");
$permissionText['user']['view_list_jobs']		= JText::_("View Jobs List");
$permissionText['user']['view_list_resumes']	= JText::_("View Resumes List");
$permissionText['user']['view_list_profiles']	= JText::_("View Profiles List");
$permissionText['user']['view_list_applications']	= JText::_("View Applications List");

//GUEST PERMISSIONS
$permissionText['guest']['view_resume_details']	= JText::_("View Resume detail");
$permissionText['guest']['view_profile_details']	= JText::_("View Profile detail");
$permissionText['guest']['view_job_details']		= JText::_("View Job detail");
$permissionText['guest']['view_list_jobs']		= JText::_("View Jobs List");
$permissionText['guest']['view_list_resumes']	= JText::_("View Resumes List");
$permissionText['guest']['view_list_profiles']	= JText::_("View Profiles List");
$permissionText['guest']['guest_apply_job']			= JText::_("Can Apply job");


//GROUP NAME
$group_name['profile'] = JText::_('Employer profiles');
$group_name['resume'] = JText::_('Resumes');
$group_name['job'] = JText::_('Job Posting');
$group_name['application'] = JText::_('Applications');
$group_name['payment'] = JText::_('Payments');

//USER PERMISSION GROUP
$group_permission['profile'] = array('post_profile', 'view_list_profiles', 'view_profile_details');
$group_permission['resume'] = array('post_resume', 'can_search_resume',  'view_resume_details', 'view_list_resumes');
$group_permission['job'] = array('standard_post_job', 'premium_post_job', 'view_list_jobs', 'view_job_details', 'guest_apply_job');
$group_permission['application'] = array('view_list_applications', 'view_application_details');
$group_permission['payment'] = array('payment');



